package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;

import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.state.record.*;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientStateRecordDTO;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.state.record.LazyNettyClientStateRecord;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;

/**
 * describe 客户端状态变更记录
 *
 * @author Jia wei Wu
 * @date 2024/07/12 04:29 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
 **/
@LazyStructMapper
public interface LazyNettyClientStateRecordDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecordDTOAssembler INSTANCE = LazyStructMappers.getMapper(LazyNettyClientStateRecordDTOAssembler.class);

    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param lazyNettyClientStateRecordStoryCommand 保存客户端状态变更记录对象
     * @return {@link LazyNettyClientStateRecord} 客户端状态变更记录领域对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecord toLazyNettyClientStateRecord(LazyNettyClientStateRecordStoryCommand lazyNettyClientStateRecordStoryCommand);

    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param lazyNettyClientStateRecordUpdateCommand 更新客户端状态变更记录对象
     * @return {@link LazyNettyClientStateRecord} 客户端状态变更记录领域对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecord toLazyNettyClientStateRecord(LazyNettyClientStateRecordUpdateCommand lazyNettyClientStateRecordUpdateCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientStateRecordQueryOneCommand 查询单个客户端状态变更记录对象参数
     * @return {@link LazyNettyClientStateRecord} 客户端状态变更记录领域对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecord toLazyNettyClientStateRecord(LazyNettyClientStateRecordQueryOneCommand lazyNettyClientStateRecordQueryOneCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientStateRecordQueryListCommand 查询集合客户端状态变更记录对象参数
     * @return {@link LazyNettyClientStateRecord} 客户端状态变更记录领域对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecord toLazyNettyClientStateRecord(LazyNettyClientStateRecordQueryListCommand lazyNettyClientStateRecordQueryListCommand);

    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param lazyNettyClientStateRecordRemoveCommand 删除客户端状态变更记录对象参数
     * @return {@link LazyNettyClientStateRecord} 客户端状态变更记录领域对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecord toLazyNettyClientStateRecord(LazyNettyClientStateRecordRemoveCommand lazyNettyClientStateRecordRemoveCommand);

    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param lazyNettyClientStateRecord 客户端状态变更记录领域对象
     * @return {@link LazyNettyClientStateRecordDTO} 客户端状态变更记录DTO对象
     * @author Jia wei Wu
     * @date 2024/07/12 04:29 下午
     **/
    LazyNettyClientStateRecordDTO fromLazyNettyClientStateRecord(LazyNettyClientStateRecord lazyNettyClientStateRecord);
}